home *** CD-ROM | disk | FTP | other *** search
- /* Ping script for use with AmIRC 1.x */ Version='1.02' /*
- // Written by Deryk Robosson 3.1.96
- //
- // newlook@ameritech.net newlook on #amiga IRC (EfNet)
- //
- // 2.2.97 Added flood support to script
- // as well as just passing it a user nick.
- // 4.3.97 Prettied up the display of information
- */
- /* set your ping count here */
- count=5
-
- bold=d2c(2)
- underline=x2c('1F')
- esc=d2c(27)
-
- options results
- parse arg param
-
- param=trim(upper(param))
- if param="" then do
- Call Version()
- Exit
- end
- if param='VER' then do
- Call Version()
- Exit
- end
- if param='HELP' then do
- Call Help()
- Exit
- end
-
- if param~="" then do
- parse var param site" "command
- if site~="" then site=trim(upper(site))
- else site=""
- if command~="" then command=trim(upper(command))
- else command=""
- end
-
- 'USERHOST 'site
- if result~="RESULT" then parse var result user"@"site
-
- /* prepare for the main file */
- con="con:0/0/600/100/PingOutput/CLOSE/SIMPLEREFRESH"
-
- /* switch on our parameters */
- select
- when command="" then ping='amitcp:bin/ping -c'||count||' '||site||' >'||con
- when command="FLOOD" then ping='amitcp:bin/ping -f '||site||' >'||con
- otherwise nop
- end
-
- ADDRESS COMMAND ping
- EXIT
-
- Version:
- "ECHO P="ESC||BOLD"«Ping» "BOLD"Ping.AMIRX"BOLD" Version "BOLD||VERSION||BOLD
- "ECHO P="ESC||BOLD"«Ping» Read the top of Ping.AMIRX script for history."
- "ECHO P="ESC||BOLD"«Ping» "BOLD"©1996,97"BOLD" Deryk Robosson "BOLD"(newlook)"BOLD" - [newlook@ameritech.net]"
- "ECHO P="ESC||BOLD"«Ping» Type /<alias> help for command information"
- return
-
- Help:
- "ECHO P="ESC||BOLD"«Ping» "BOLD"Ping.AMIRX"BOLD" Help"
- "ECHO P="ESC||BOLD"«Ping» "BOLD"VER - "BOLD"displays script version"
- "ECHO P="ESC||BOLD"«Ping» "BOLD"FLOOD - "BOLD"selects ping flood"
- "ECHO P="ESC||BOLD"«Ping» "BOLD"HELP - "BOLD"displays this file"
- "ECHO P="ESC||BOLD"«Ping» "BOLD||UNDERLINE"EXAMPLES:"BOLD||UNDERLINE
- "ECHO P="ESC||BOLD"«Ping» "BOLD"/Pi site.com "BOLD" will ping a site"
- "ECHO P="ESC||BOLD"«Ping» "BOLD"/Pi usernick "BOLD" will ping the users site"
- "ECHO P="ESC||BOLD"«Ping» "BOLD"/Pi site.com "BOLD" will flood the site"
- return
-